﻿<UserControl 
    xmlns:localviews="clr-namespace:WGM_Silverlight.Views"
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  
    x:Class="WGM_Silverlight.MasterPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch"
    Loaded="OnLoaded">
    <Grid x:Name="LayoutRoot" Background="Black">
        <controls:TabControl Background="Black">
            <controls:TabItem Visibility="Collapsed" x:Name="_loginTab" IsSelected="True">
                <localviews:LoginView LoginClick="OnLoginClick" CreateAccountClick="OnCreateAccountClick" Name="_loginView" PasswordKeyUp="OnKeyUp" UsernameKeyUp="OnKeyUp" />
            </controls:TabItem>
            <controls:TabItem Visibility="Collapsed" x:Name="_networksTab">
                <localviews:NetworksView Name="_networksView" />
            </controls:TabItem>
            <controls:TabItem Visibility="Collapsed" x:Name="_mainTab">
                <localviews:MainView Name="_mainView" BackToLobbyClick="OnBackToLobby"/>
            </controls:TabItem>
        </controls:TabControl>
    </Grid>
</UserControl>
